home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
COMPILER
/
SATHER
/
!Sather
/
Library
/
pSather
/
config
/
timing
< prev
Wrap
Text File
|
1996-02-13
|
490b
|
21 lines
#ifndef TIMING_CONFIG
#define TIMING_CONFIG
#ifdef PP
#undef PP
#endif
#define PP no_pre,no_post
-- most of the functions and macros used in this file are defined
-- in am.h, the rest in pSather.h
TIMING_TIME: PP,
declare "int gettimeofday(struct timeval *,void *);"
"extern int start_sec;",
var "struct timeval $$now;",
exec "gettimeofday(&$$now,NULL);"
"*$1=$$now.tv_sec-start_sec;"
"*$2=$$now.tv_usec;";
TIMING_SLEEP: volatile,exec "sleep($1);";
#endif